home *** CD-ROM | disk | FTP | other *** search
-
- println("Press the arrow keys, <ESC> to quit...");
-
- setcolor(14);
-
- $checkkeys
-
- {clear keys}
- setcursor(0,6);
- print(" ");
- setcursor(0,12);
- print(" ");
- setcursor(0,18);
- print(" ");
- setcursor(0,24);
- print(" ");
-
- {check up arrow}
- if (kbcode(72))
- setcursor(0, 6);
- print("up arrow");
- endif;
-
- {check down arrow}
- if (kbcode(80))
- setcursor(0, 12);
- print("down arrow");
- endif;
-
- {check left arrow}
- if (kbcode(75))
- setcursor(0,18);
- print("left arrow");
- endif;
-
- {check right arrow}
- if (kbcode(77))
- setcursor(0,24);
- print("right arrow");
- endif;
-
-
- {check for <ESC>}
- if (kbcode(1))
- goto $out
- endif;
-
- goto $checkkeys
-
- $out
- println("");
- println("out of here");
-
-
-
-
-
-
-